
<%@ page import="com.opeace.SchoolClass" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'schoolClass.label', default: 'SchoolClass')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-schoolClass" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		
        
			<h1>Class List</h1>
                      
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table class = "table3" align="center">
				<thead>
					<tr>
					
						<th><g:message code="schoolClass.child.label" default="Child" /></th>
					
						<g:sortableColumn property="description" title="${message(code: 'schoolClass.description.label', default: 'Description')}" />
					
						<g:sortableColumn property="grade" title="${message(code: 'schoolClass.grade.label', default: 'Grade')}" />
					
						<g:sortableColumn property="level" title="${message(code: 'schoolClass.level.label', default: 'Level')}" />
					
						<g:sortableColumn property="name" title="${message(code: 'schoolClass.name.label', default: 'Name')}" />
					
						<th><g:message code="schoolClass.school.label" default="School" /></th>
					
					</tr>
				</thead>
				<tbody>
				<g:each in="${schoolClassInstanceList}" status="i" var="schoolClassInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="show" id="${schoolClassInstance.id}">${fieldValue(bean: schoolClassInstance, field: "child.firstName")}</g:link></td>
					
						<td>${fieldValue(bean: schoolClassInstance, field: "description")}</td>
					
						<td>${fieldValue(bean: schoolClassInstance, field: "grade")}</td>
					
						<td>${fieldValue(bean: schoolClassInstance, field: "level")}</td>
					
						<td>${fieldValue(bean: schoolClassInstance, field: "name")}</td>
					
						<td>${fieldValue(bean: schoolClassInstance, field: "school.name")}</td>
					
					</tr>
				</g:each>
				</tbody>
			</table>
                        <div class="nav" role="navigation">
			<ul>
				<li><g:link class="create" action="create">Create Class</g:link></li>
			</ul>
                      </div>
	</body>
</html>
